<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>Login to chat</title>
    <meta name="description" content="">
    <link href="style.css" rel="stylesheet">
    <script type="text/javascript">
        function sendLogin() {
            var login = document.getElementById("loginInput").value;
            document.getElementById("loginInput").value = '';
            window.location = "chat.html?login=" + encodeURIComponent(login);
        }

        function handle(event) {
            if(event.keyCode === 13) {
                event.preventDefault();
                sendLogin();
            }
        }
    </script>
</head>
<body bgcolor="#81d4fa">
<div id="loginBlock" align="center">
	<H4 align="center">用户登录</H4>
    <H8>登录名：<input type="text" id="loginInput" size="5"  value="" /></H8>
    <H8>密 码： <input type="text" id="loginPass" size="6" value="" /></H8>
    <br/>
    <br/>
    <a href="javascript: sendLogin();" class="button">Login</a>
</div>
</body>
</html>